package cn.itsource.ymcc.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;

@Data
public class UserRegisterDto {
    @NotEmpty(message = "手机号不能为空")
    private String phone;
    @NotEmpty(message = "密码不能为空")
    private String password;
    @NotEmpty(message = "手机验证码不能为空")
    private String smsCode;
    @Range(min = 0,max = 1,message = "参数异常")
    private Integer regChannel;
}
